package dws_topic

import "server/global"


type DwsTopic struct {
	Name        string `json:"name" form:"name" gorm:"not null;column:name;comment:主题名称;size:30;"`
	Code        string `json:"code" form:"code" gorm:"not null;column:code;comment:主题编码;size:30;"`
	Applicant   string `json:"applicant" form:"applicant" gorm:"column:applicant;comment:申请人;size:30;"`
	ApplyReason string `json:"applyReason" form:"applyReason" gorm:"column:applyReason;comment:申请原因;size:30;"`
	ApplyTeam   string `json:"applyTeam" form:"applyTeam" gorm:"column:applyTeam;comment:申请团队;size:30;"`
	Contract    string `json:"contract" form:"contract" gorm:"column:contract;comment:联系方式;size:30;"`
	Remarks     string `json:"remarks" form:"remarks" gorm:"column:remarks;comment:备注;size:250;"`

	global.BaseModel
	CreatedBy uint `gorm:"column:created_by;comment:创建者"`
	UpdatedBy uint `gorm:"column:updated_by;comment:更新者"`
	DeletedBy uint `gorm:"column:deleted_by;comment:删除者"`
}


func (DwsTopic) TableName() string {
	return "dws_topic"
}
